From: Florian Müllner Date: Mon, 26 May 2025 13:27:22 +0000 (+0200) Subject: ci: Restore /etc/passwd permissions after installing packages X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~124^2^2~70 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=e27fc6068ef3138f967166db6321f6895bd9c32f;p=gnome-shell.git ci: Restore /etc/passwd permissions after installing packages The flatpak package installs a sysuser trigger, which for some reason messes up the permissions of /etc/passwd to only be readable by root. Work around this by simply restoring the permissions at the end. Part-of: --- diff --git a/.gitlab-ci/build-toolbox-image.sh b/.gitlab-ci/build-toolbox-image.sh index 24f110aa6..1b4934fd6 100755 --- a/.gitlab-ci/build-toolbox-image.sh +++ b/.gitlab-ci/build-toolbox-image.sh @@ -45,6 +45,10 @@ build_container() { buildah run $build_cntr dnf clean all buildah run $build_cntr rm -rf /var/lib/cache/dnf + # somehow the sysusers trigger from the flatpak package messes up the + # permissions of /etc/passwd to be only readable by root + buildah run $build_cntr chmod 644 /etc/passwd + # disable gnome-keyring activation: # it either asks for unlocking the login keyring on startup, or it detects # the running host daemon and doesn't export the object on the bus, which